//
//  aboutLoveCarViewViewController.m
//  LoveCar
//
//  Created by Du Bin on 15/5/30.
//  Copyright (c) 2015年 薛森鸿. All rights reserved.
//

#import "aboutLoveCarViewViewController.h"

@interface aboutLoveCarViewViewController ()

@end

@implementation aboutLoveCarViewViewController

- (void)dealloc
{
    [super dealloc];
}

- (instancetype) initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        
    }
    return self;
}

- (void)loadView
{
    [super loadView];
    [self.view setBackgroundColor:[UIColor whiteColor]];
    self.navigationItem.title = @"关于爱车";
    UIBarButtonItem *back = [[UIBarButtonItem alloc] initWithTitle:@" ╳" style:UIBarButtonItemStylePlain target:self action:@selector(backAction:)];
    back.tintColor = [UIColor lightGrayColor];
    self.navigationItem.leftBarButtonItem = back;
}
- (void)backAction:(id)sender
{
    [self.navigationController popToRootViewControllerAnimated:YES];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    UIImageView *img = [[UIImageView alloc] initWithFrame:CGRectMake(self.view.frame.size.width / 2 - 100, 50, 200, 100)];
    [img setImage:[UIImage imageNamed:@"t.png"]];
    [self.view addSubview:img];
    [img release];
//    UILabel *title = [[UILabel alloc] initWithFrame:CGRectMake(0, 50, self.view.frame.size.width, 80)];
//    title.text = @"爱 评 车";
//    title.font = [UIFont systemFontOfSize:45];
//    title.textColor =  [UIColor blueColor];
//    title.textAlignment = 1;
//    [self.view addSubview:title];
//    [title release];
    
    UILabel *title1 = [[UILabel alloc] initWithFrame:CGRectMake(0, 130, self.view.frame.size.width, 120)];
    title1.text = @"爱评车iOS版\n\n版本V1.0";
    title1.numberOfLines = 0;
    title1.font = [UIFont systemFontOfSize:17];
    title1.textColor =  [UIColor lightGrayColor];
    title1.textAlignment = 1;
    [self.view addSubview:title1];
    [title1 release];
    
    UILabel *copyright = [[UILabel alloc] initWithFrame:CGRectMake(0, self.view.frame.size.height - 180, self.view.frame.size.width, 50)];
    copyright.text = @" 版权所有大连红姐包子铺\nCopyRight ® 2000-2015 HongJie All Rights Reserved";
    //copyright.backgroundColor = [UIColor greenColor];
    copyright.numberOfLines = 0;
    copyright.font = [UIFont systemFontOfSize:14];
    copyright.textColor =  [UIColor lightGrayColor];
    copyright.textAlignment = 1;
    [self.view addSubview:copyright];
    [copyright release];
    
}



@end
